<?phpnamespace app\common\model;use app\common\helper\Obj2Array;class WechatAppletModel extends Base{    protected $connection = 'kecheng_db_config';    protected $table = 'ke_wx_applet';    /**     * 返回项目关联的小程序     *     * @param $product_code     * @return array|false|\PDOStatement|string|\think\Collection     * @throws \think\db\exception\DataNotFoundException     * @throws \think\db\exception\ModelNotFoundException     * @throws \think\exception\DbException     */    public static function appletList($product_code) {        $model = new self();        $list = $model            ->field(['id' => 'applet_app_id', 'name' => 'applet_name', 'applet_appid' => 'real_app_id', 'original_id'])            ->where(['product_code' => $product_code])            ->select();        if (!empty($list)) {            $list = Obj2Array::resObject2Array($list);        }        return $list;    }}